import request from '@/utils/request'

export const reqGetTrademark = (page,limit)=>{
   return request({
        method:'GET',
        url:`/admin/product/baseTrademark/${page}/${limit}`
    })
}

export const  reqUpdateTrademark= (id,logoUrl,tmName)=>{
    return request({
         method:'PUT',
         url: "/admin/product/baseTrademark/update",
         data:{
             id,
             logoUrl,
             tmName
         }
     })
 }

 export const reqAddTrademark = (logoUrl,tmName)=>{
    return request({
         method:'POST',
         url: "/admin/product/baseTrademark/save",
         data:{
            id:Date.now(),
            logoUrl,
            tmName
         }
     })
 }

 export const reqDeleteTrademark = (id)=>{
    return request({
         method:'DELETE',
         url: `/admin/product/baseTrademark/remove/${id}`,
         
     })
 }